{% extends 'base.html' %}

{% block title %}新建编号{% endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static', filename='css/newnum.css') }}">
{% endblock %}

{% block index_main %}
    <div class="main">
        <div class="indexmain">
            <h3 class="page-title">新建项目编号</h3>
            <form action="" method="post">
                <div class="form-container">
                    <div class="form-group">
                        <input type="text" placeholder="请输入项目编号" name="project_num" class="form-control">
                    </div>
                    <div class="form-group">
                        <input type="text" placeholder="请输入项目名称" name="pro_name" class="form-control">
                    </div>
                    <div class="form-group">
                        <select name="cust_select" id="cust_select" class="form-control">
                            <option value="" selected>请选择客户单位</option>
                            {% for cust_select in cust_selects %}
                                <option value="{{ cust_select.id }}" >{{ cust_select.custunit_name }}</option>
                            {% endfor %}
                        </select>
{#                        <input type="text" placeholder="请输入客户单位" name="custunit" class="form-control">#}
                    </div>
                    <div class="form-group">
{#                        <input type="text" placeholder="请输入销售负责人" name="saleshead" class="form-control">#}
                        <select name="sale_select" id="sale_select" class="form-control">
                            <option value="" selected>请选择销售负责人</option>
                            {% for staff_select in staff_selects %}
                                <option value="{{ staff_select.id }}" >{{ staff_select.staff_name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                    <div class="form-group">
                        <select name="tech_select" id="tech_select" class="form-control">
                            <option value="" selected>请选择售前(技术)负责人</option>
                            {% for staff_select in staff_selects %}
                                <option value="{{ staff_select.id }}" >{{ staff_select.staff_name }}</option>
                            {% endfor %}
                        </select>
{#                        <input type="text" placeholder="请输入售前（技术）负责人" name="techhead" class="form-control">#}
                    </div>
                    <div class="form-group">
                        <select name="develop_select" id="develop_select" class="form-control">
                            <option value="" selected>请选择研发负责人</option>
                            {% for staff_select in staff_selects %}
                                <option value="{{ staff_select.id }}" >{{ staff_select.staff_name }}</option>
                            {% endfor %}
                        </select>
{#                        <input type="text" placeholder="请输入研发负责人" name="develophead" class="form-control">#}
                    </div>
                    <div class="form-group">
                        <textarea name="beizhu" rows="4" class="form-control" placeholder="请输入备注"></textarea>
                    </div>
                    <div class="form-group">
                        <button class="btn btn-primary btn-block">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
{% endblock %}